import request from '@/utils/request'

// 热度榜相关API
export const hotRankingApi = {
  // 获取全站热度榜
  getHotRanking: (params) => {
    return request({
      url: '/api/hot-ranking',
      method: 'GET',
      params
    })
  },
  
  // 获取分类热度榜
  getCategoryHotRanking: (categoryId, params) => {
    return request({
      url: `/api/hot-ranking/category/${categoryId}`,
      method: 'GET',
      params
    })
  },
  
  // 获取实时热度统计
  getHotStats: () => {
    return request({
      url: '/api/hot-ranking/stats',
      method: 'GET'
    })
  }
}